package com.frejoys.common.vo.common;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class UserDetailsVo {

    @Schema(type = "Long", name = "userId", description = "用户id", required = true, defaultValue = "347634044899328")
    private Long userId;

    @Schema(type = "String", name = "nickname", description = "昵称", required = true, defaultValue = "马小贱")
    private String nickname;

    @Schema(type = "String", name = "avatar", description = "头像", required = true, defaultValue = "avatar.png")
    private String avatar;

    @Schema(type = "String", name = "phone", description = "电话", required = true, defaultValue = "15366666666")
    private String phone;

    @Schema(type = "Integer", name = "role", description = "角色：0普通用户，1达人，2代理人，4商家", required = true, defaultValue = "0")
    private Integer role;

    @Schema(type = "BigDecimal", name = "spendMoney", description = "消费金额", required = true, defaultValue = "1000")
    private BigDecimal spendMoney;

    @Schema(type = "BigDecimal", name = "rebateMoney", description = "返利金额", required = true, defaultValue = "1")
    private BigDecimal rebateMoney;

    @Schema(type = "BigDecimal", name = "rebateMoneyTotal", description = "返利总金额", required = true, defaultValue = "1")
    private BigDecimal rebateMoneyTotal;

    @Schema(type = "BigDecimal", name = "score", description = "积分，1元1积分，向下取整（网购金额）", required = true, defaultValue = "1000")
    private BigDecimal score;

    @Schema(type = "String", name = "qrCode", description = "二维码", required = true, defaultValue = "xxx.png")
    private String qrCode;

    @Schema(type = "Integer", name = "orderCount", description = "订单数量", required = true, defaultValue = "2")
    private Integer orderCount;

    @Schema(type = "String", name = "code", description = "邀请码", required = true, defaultValue = "255555")
    private String code;

    @Schema(type = "Integer", name = "userLevelStatus", description = "用户关联状态 0 已关联 1 未关联  ", required = true, defaultValue = "255555")
    private Integer userLevelStatus;

}
